<?php
    require_once('/usr/home/gliff/phpincludes/markdown.php');
    
    
    class ContentCourierProcessorMarkdown{
        public function processContent($string){
            return Markdown($string);
        }
    }    
    //silly examply
    class ContentCourierProcessorRemoveVowels{
        /**
        * Yoinks out all the vowels from a string
        *
        * Also removed Y every other hour
        * @param string $string
        * @return string
        */             
        public function processContent($string){
            $string = preg_replace('{[aeiou]}six','',$string);
            //sometimes Y
            if(date('h') % 2 == 0){
                $string = preg_replace('{[y]}six','',$string);
            }
            return $string;
        }
    }        
    //another silly custom example
    class ContentCourierProcessorCustomText    {
        /**
        * Randomly juggles the vowels in a string of content
        * @param type $var_name
        * @return type $var_name
        */             
        public function processContent($string){        
            $functionReplace = create_function('$matches','
                $vowels = array("a","e","i","o","u");
                $index = rand(0,count($vowels)-1);
                return $vowels[$index];
            ');
            
            $string = preg_replace_callback('{[aeiou]}six',$functionReplace,$string);
            return $string;
        }
    }
    
?>